package com.dating.base.bean;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Table;

import com.dating.base.bean.User.Type;
import com.dating.core.ext.Entity;

/**
 * @description 用户角色关系实体类
 */
@Table("t_user_role")
@Comment("用户角色关系表")
public class UserRole extends Entity {

	@Column("u_id")
	@Comment("用户ID")
	private int userId;

	@Column("r_id")
	@Comment("角色ID")
	private int roleId;

	@Column("u_type")
	@Comment("用户类型")
	private Type type;

	public UserRole() {
	}
	public UserRole(Integer userId ,Integer roleId,Type userType) {
		this.userId = userId ;
		this.roleId = roleId ;
		this.type = userType;
	}
	
	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

}
